#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

def scrollCall(moveto, pos, zzz):
    print type(moveto), type(pos), type(zzz)
    print moveto, pos, zzz
    sl.set(pos,0)
    print sl.get()

sl = Scrollbar(root, orient=HORIZONTAL, command=scrollCall)
sl.set(0.5, 1)
sl.pack()

root.mainloop()
